/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.cip.esymons.tesoreria.be;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author Gilmar Montoya
 */
@Entity
@Table(name = "tes_configuracion_otros")
@NamedQueries({@NamedQuery(name = "ConfiguracionOtros.findAll", query = "SELECT c FROM ConfiguracionOtros c"), @NamedQuery(name = "ConfiguracionOtros.findByConCodigo", query = "SELECT c FROM ConfiguracionOtros c WHERE c.conCodigo = :conCodigo"), @NamedQuery(name = "ConfiguracionOtros.findByConDescripcion", query = "SELECT c FROM ConfiguracionOtros c WHERE c.conDescripcion = :conDescripcion"), @NamedQuery(name = "ConfiguracionOtros.findByConGlosa", query = "SELECT c FROM ConfiguracionOtros c WHERE c.conGlosa = :conGlosa"), @NamedQuery(name = "ConfiguracionOtros.findByConValor", query = "SELECT c FROM ConfiguracionOtros c WHERE c.conValor = :conValor")})
public class ConfiguracionOtros implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "con_codigo", nullable = false)
    private Integer conCodigo;
    @Column(name = "con_descripcion", length = 150)
    private String conDescripcion;
    @Basic(optional = false)
    @Column(name = "con_glosa", nullable = false, length = 100)
    private String conGlosa;
    @Basic(optional = false)
    @Column(name = "con_valor", nullable = false)
    private String conValor;

    public ConfiguracionOtros() {
    }

    public ConfiguracionOtros(Integer conCodigo) {
        this.conCodigo = conCodigo;
    }

    public ConfiguracionOtros(Integer conCodigo, String conGlosa, String conValor) {
        this.conCodigo = conCodigo;
        this.conGlosa = conGlosa;
        this.conValor = conValor;
    }

    public Integer getConCodigo() {
        return conCodigo;
    }

    public void setConCodigo(Integer conCodigo) {
        this.conCodigo = conCodigo;
    }

    public String getConDescripcion() {
        return conDescripcion;
    }

    public void setConDescripcion(String conDescripcion) {
        this.conDescripcion = conDescripcion;
    }

    public String getConGlosa() {
        return conGlosa;
    }

    public void setConGlosa(String conGlosa) {
        this.conGlosa = conGlosa;
    }

    public String getConValor() {
        return conValor;
    }

    public void setConValor(String conValor) {
        this.conValor = conValor;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (conCodigo != null ? conCodigo.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ConfiguracionOtros)) {
            return false;
        }
        ConfiguracionOtros other = (ConfiguracionOtros) object;
        if ((this.conCodigo == null && other.conCodigo != null) || (this.conCodigo != null && !this.conCodigo.equals(other.conCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "org.cip.esymons.tesoreria.be.ConfiguracionOtros[conCodigo=" + conCodigo + "]";
    }

}
